package com.ourteam.product.model.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:00:53
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductModelServiceParameterTemplate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long serviceTemplateItemId;

    /**
     * Attribute serviceTemplateItemId Be Seted Falg
     */
    private boolean serviceTemplateItemIdSetted = false;

    /**
    * Attribute serviceTemplateItemId is Null Falg
    */
    private boolean serviceTemplateItemIdNull = false;
    private String parameterType;

    /**
     * Attribute parameterType Be Seted Falg
     */
    private boolean parameterTypeSetted = false;

    /**
    * Attribute parameterType is Null Falg
    */
    private boolean parameterTypeNull = false;
    private long dataTypeId;

    /**
     * Attribute dataTypeId Be Seted Falg
     */
    private boolean dataTypeIdSetted = false;

    /**
    * Attribute dataTypeId is Null Falg
    */
    private boolean dataTypeIdNull = false;
    private String dataCheck;

    /**
     * Attribute dataCheck Be Seted Falg
     */
    private boolean dataCheckSetted = false;

    /**
    * Attribute dataCheck is Null Falg
    */
    private boolean dataCheckNull = false;
    private String isArray;

    /**
     * Attribute isArray Be Seted Falg
     */
    private boolean isArraySetted = false;

    /**
    * Attribute isArray is Null Falg
    */
    private boolean isArrayNull = false;
    private String parameterNameTemplate;

    /**
     * Attribute parameterNameTemplate Be Seted Falg
     */
    private boolean parameterNameTemplateSetted = false;

    /**
    * Attribute parameterNameTemplate is Null Falg
    */
    private boolean parameterNameTemplateNull = false;
    private int sortIndex;

    /**
     * Attribute sortIndex Be Seted Falg
     */
    private boolean sortIndexSetted = false;

    /**
    * Attribute sortIndex is Null Falg
    */
    private boolean sortIndexNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String dataTypeIdExpression;

    /**
     * Attribute dataTypeIdExpression Be Seted Falg
     */
    private boolean dataTypeIdExpressionSetted = false;

    /**
    * Attribute dataTypeIdExpression is Null Falg
    */
    private boolean dataTypeIdExpressionNull = false;
    private String dataType;

    /**
     * Attribute dataType Be Seted Falg
     */
    private boolean dataTypeSetted = false;

    /**
    * Attribute dataType is Null Falg
    */
    private boolean dataTypeNull = false;

    public ProductModelServiceParameterTemplate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get serviceTemplateItemId
         *
         * @return long
         */
    final public long getServiceTemplateItemId() {
        return serviceTemplateItemId;
    }

    /**
     * Set serviceTemplateItemId
     *
     * @param long
     */
    final public void setServiceTemplateItemId(long serviceTemplateItemId) {
        this.serviceTemplateItemId = serviceTemplateItemId;

        this.serviceTemplateItemIdSetted = true;

        this.setServiceTemplateItemIdNull(false);
    }

    /**
     * Get serviceTemplateItemId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isServiceTemplateItemIdSetted() {
        return this.serviceTemplateItemIdSetted;
    }

    /**
     * Set serviceTemplateItemId Null
     *
     */
    final public void setServiceTemplateItemIdNull() {
        this.serviceTemplateItemIdNull = true;
    }

    final public void setServiceTemplateItemIdNull(boolean aNullFlag) {
        this.serviceTemplateItemIdNull = aNullFlag;
    }

    final public boolean isServiceTemplateItemIdNull() {
        return this.serviceTemplateItemIdNull;
    }

    /**
         * Get parameterType
         *
         * @return String
         */
    final public String getParameterType() {
        if (isParameterTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(parameterType);
        }
    }

    /**
     * Set parameterType
     *
     * @param String
     */
    final public void setParameterType(String parameterType) {
        this.parameterType = StringUtils.trim(parameterType);

        this.parameterTypeSetted = true;

        this.setParameterTypeNull(this.parameterType == null);
    }

    /**
     * Get parameterType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isParameterTypeSetted() {
        return this.parameterTypeSetted;
    }

    /**
     * Set parameterType Null
     *
     */
    final public void setParameterTypeNull() {
        this.parameterTypeNull = true;
    }

    final public void setParameterTypeNull(boolean aNullFlag) {
        this.parameterTypeNull = aNullFlag;
    }

    final public boolean isParameterTypeNull() {
        return this.parameterTypeNull;
    }

    /**
         * Get dataTypeId
         *
         * @return long
         */
    final public long getDataTypeId() {
        return dataTypeId;
    }

    /**
     * Set dataTypeId
     *
     * @param long
     */
    final public void setDataTypeId(long dataTypeId) {
        this.dataTypeId = dataTypeId;

        this.dataTypeIdSetted = true;

        this.setDataTypeIdNull(false);
    }

    /**
     * Get dataTypeId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDataTypeIdSetted() {
        return this.dataTypeIdSetted;
    }

    /**
     * Set dataTypeId Null
     *
     */
    final public void setDataTypeIdNull() {
        this.dataTypeIdNull = true;
    }

    final public void setDataTypeIdNull(boolean aNullFlag) {
        this.dataTypeIdNull = aNullFlag;
    }

    final public boolean isDataTypeIdNull() {
        return this.dataTypeIdNull;
    }

    /**
         * Get dataCheck
         *
         * @return String
         */
    final public String getDataCheck() {
        if (isDataCheckNull()) {
            return null;
        } else {
            return StringUtils.trim(dataCheck);
        }
    }

    /**
     * Set dataCheck
     *
     * @param String
     */
    final public void setDataCheck(String dataCheck) {
        this.dataCheck = StringUtils.trim(dataCheck);

        this.dataCheckSetted = true;

        this.setDataCheckNull(this.dataCheck == null);
    }

    /**
     * Get dataCheck Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDataCheckSetted() {
        return this.dataCheckSetted;
    }

    /**
     * Set dataCheck Null
     *
     */
    final public void setDataCheckNull() {
        this.dataCheckNull = true;
    }

    final public void setDataCheckNull(boolean aNullFlag) {
        this.dataCheckNull = aNullFlag;
    }

    final public boolean isDataCheckNull() {
        return this.dataCheckNull;
    }

    /**
         * Get isArray
         *
         * @return String
         */
    final public String getIsArray() {
        if (isIsArrayNull()) {
            return null;
        } else {
            return StringUtils.trim(isArray);
        }
    }

    /**
     * Set isArray
     *
     * @param String
     */
    final public void setIsArray(String isArray) {
        this.isArray = StringUtils.trim(isArray);

        this.isArraySetted = true;

        this.setIsArrayNull(this.isArray == null);
    }

    /**
     * Get isArray Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIsArraySetted() {
        return this.isArraySetted;
    }

    /**
     * Set isArray Null
     *
     */
    final public void setIsArrayNull() {
        this.isArrayNull = true;
    }

    final public void setIsArrayNull(boolean aNullFlag) {
        this.isArrayNull = aNullFlag;
    }

    final public boolean isIsArrayNull() {
        return this.isArrayNull;
    }

    /**
         * Get parameterNameTemplate
         *
         * @return String
         */
    final public String getParameterNameTemplate() {
        if (isParameterNameTemplateNull()) {
            return null;
        } else {
            return StringUtils.trim(parameterNameTemplate);
        }
    }

    /**
     * Set parameterNameTemplate
     *
     * @param String
     */
    final public void setParameterNameTemplate(String parameterNameTemplate) {
        this.parameterNameTemplate = StringUtils.trim(parameterNameTemplate);

        this.parameterNameTemplateSetted = true;

        this.setParameterNameTemplateNull(this.parameterNameTemplate == null);
    }

    /**
     * Get parameterNameTemplate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isParameterNameTemplateSetted() {
        return this.parameterNameTemplateSetted;
    }

    /**
     * Set parameterNameTemplate Null
     *
     */
    final public void setParameterNameTemplateNull() {
        this.parameterNameTemplateNull = true;
    }

    final public void setParameterNameTemplateNull(boolean aNullFlag) {
        this.parameterNameTemplateNull = aNullFlag;
    }

    final public boolean isParameterNameTemplateNull() {
        return this.parameterNameTemplateNull;
    }

    /**
         * Get sortIndex
         *
         * @return int
         */
    final public int getSortIndex() {
        return sortIndex;
    }

    /**
     * Set sortIndex
     *
     * @param int
     */
    final public void setSortIndex(int sortIndex) {
        this.sortIndex = sortIndex;

        this.sortIndexSetted = true;

        this.setSortIndexNull(false);
    }

    /**
     * Get sortIndex Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSortIndexSetted() {
        return this.sortIndexSetted;
    }

    /**
     * Set sortIndex Null
     *
     */
    final public void setSortIndexNull() {
        this.sortIndexNull = true;
    }

    final public void setSortIndexNull(boolean aNullFlag) {
        this.sortIndexNull = aNullFlag;
    }

    final public boolean isSortIndexNull() {
        return this.sortIndexNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get dataTypeIdExpression
         *
         * @return String
         */
    final public String getDataTypeIdExpression() {
        if (isDataTypeIdExpressionNull()) {
            return null;
        } else {
            return StringUtils.trim(dataTypeIdExpression);
        }
    }

    /**
     * Set dataTypeIdExpression
     *
     * @param String
     */
    final public void setDataTypeIdExpression(String dataTypeIdExpression) {
        this.dataTypeIdExpression = StringUtils.trim(dataTypeIdExpression);

        this.dataTypeIdExpressionSetted = true;

        this.setDataTypeIdExpressionNull(this.dataTypeIdExpression == null);
    }

    /**
     * Get dataTypeIdExpression Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDataTypeIdExpressionSetted() {
        return this.dataTypeIdExpressionSetted;
    }

    /**
     * Set dataTypeIdExpression Null
     *
     */
    final public void setDataTypeIdExpressionNull() {
        this.dataTypeIdExpressionNull = true;
    }

    final public void setDataTypeIdExpressionNull(boolean aNullFlag) {
        this.dataTypeIdExpressionNull = aNullFlag;
    }

    final public boolean isDataTypeIdExpressionNull() {
        return this.dataTypeIdExpressionNull;
    }

    /**
         * Get dataType
         *
         * @return String
         */
    final public String getDataType() {
        if (isDataTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(dataType);
        }
    }

    /**
     * Set dataType
     *
     * @param String
     */
    final public void setDataType(String dataType) {
        this.dataType = StringUtils.trim(dataType);

        this.dataTypeSetted = true;

        this.setDataTypeNull(this.dataType == null);
    }

    /**
     * Get dataType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDataTypeSetted() {
        return this.dataTypeSetted;
    }

    /**
     * Set dataType Null
     *
     */
    final public void setDataTypeNull() {
        this.dataTypeNull = true;
    }

    final public void setDataTypeNull(boolean aNullFlag) {
        this.dataTypeNull = aNullFlag;
    }

    final public boolean isDataTypeNull() {
        return this.dataTypeNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductModelServiceParameterTemplate) == false) {
            return false;
        }

        ProductModelServiceParameterTemplate other = (ProductModelServiceParameterTemplate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("serviceTemplateItemId=");
        buffer.append(this.serviceTemplateItemId);

        buffer.append("parameterType=");
        buffer.append(this.parameterType);

        buffer.append("dataTypeId=");
        buffer.append(this.dataTypeId);

        buffer.append("dataCheck=");
        buffer.append(this.dataCheck);

        buffer.append("isArray=");
        buffer.append(this.isArray);

        buffer.append("parameterNameTemplate=");
        buffer.append(this.parameterNameTemplate);

        buffer.append("sortIndex=");
        buffer.append(this.sortIndex);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("dataTypeIdExpression=");
        buffer.append(this.dataTypeIdExpression);

        buffer.append("dataType=");
        buffer.append(this.dataType);

        buffer.append("]");

        return buffer.toString();
    }
}
